package org.example.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Teachers {
    private Long tid;
    private Long majorid;
    private String tname;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;
    private int tsex;

}
